<template>
    <div style="width: 100vw;height: 100vh;overflow: hidden;display: flex">
        <div style="flex: 1">
            <el-image
                    src="https://pic4.zhimg.com/v2-e229c5e0cf12d821fa9922a3d860336b_r.jpg"
                    style="width: 100%;height: 100%;" fit="cover">

            </el-image>
        </div>
        <div class="welcome-title">
            <div style="font-size: 55px;font-weight: bold">欢迎来到Alan的个人博客</div>
            <div style="font-size: 20px;margin-top: 20px">本项目仅供个人学习使用</div>
        </div>
        <div style="width: 400px;background-color: white;z-index: 1">
            <transition name="el-zoom-in-center">
                <router-view/>
            </transition>
<!--正确用法，但是有点毛病-->
<!--            <router-view v-slot="{Component}">-->
<!--                <transition name="el-zoom-in-center">-->
<!--                    <Component :is="Component"/>-->
<!--                </transition>-->
<!--            </router-view>-->
        </div>
    </div>
</template>

<script setup>

</script>

<style scoped>
.welcome-title{
    position: absolute;
    top: 300px;
    left: 30px;
    color: white;
    text-shadow: black;
}
</style>